<?php /* Smarty version 2.6.18, created on 2013-06-04 17:49:26
         compiled from sites.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'sites.tpl', 202, false),array('modifier', 'replace', 'sites.tpl', 211, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "includes/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="fb-root"></div>
<link href="js/front.css" media="screen, projection" rel="stylesheet" type="text/css">

<?php echo '
   <script src="js/jquery.tipsy.js" type="text/javascript"></script>
   <script src="js/jquery.js" type="text/javascript"></script>
   
	<script src="http://connect.facebook.net/es_LA/all.js"></script>
			
	<script>
		FB.init({
			appId      	: \'423263144390114\', // App ID
			status     	: true, // check login status
    		cookie		: true, // enable cookies to allow the server to access the session
    		xfbml			: true
    	});
    	    				
    	FB.getLoginStatus(function(response) {
     		if (response.status === \'connected\') {
     			FB.api(\'/me\', function(response) {
     				$.ajax({
						url	: \'modules/loginFacebook.php\',
						type	: \'POST\',
						data	: \'facebook=\' + response.email,
													
						success: function(respuesta){
							if(respuesta == 1){
								recargar();
							}											
						}
					});
				});
  	       
  	       } else if (response.status === \'not_authorized\') {
  	       } else {
  	       }
 	    }, true);  
	</script>
	
	<script type="text/javascript">
		$(document).ready(function() {
	      $(".signin").click(function(e) {          
				e.preventDefault();
           	$("fieldset#signin_menu").toggle();
				$(".signin").toggleClass("menu-open");
				$(".signin").css("padding-bottom", "25px");
			});
			
			$("fieldset#signin_menu").mouseup(function() {
				return false
			});
					
			$(document).mouseup(function(e) {
				if($(e.target).parent("a.signin").length==0) {
					$(".signin").removeClass("menu-open");
					$("fieldset#signin_menu").hide();
					$(".signin").css("padding-bottom", "5px");
				}
			});						
		});
        					
		$(function() {
			$(\'#forgot_username_link\').tipsy({gravity: \'w\'});   
    	});
	</script>
	
	<script>
		function recargar(){
      	window.location.reload(true);
      }
	</script>
'; ?>




<?php if ($this->_tpl_vars['config']['delivery_minimum'] != '1'): ?>
	<div>
		<img id="fondoPantalla" src="UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['config']['delivery_minimum']; ?>
">
	</div>
<?php else: ?>
	<div>
		<img id="fondoPantalla" src="images/fondo2.jpg">
	</div>
<?php endif; ?>



	
<div class="barraSuperior">
	<div class="contenedorBarraSuperior">
		<div class="barraSupLogoDerecho">
	   	<a href="//<?php echo $this->_tpl_vars['paginaPrincipal']; ?>
"> 
	      	<img src="images/logoSupIzq.png" border="0"/>
	   	</a>
		</div> 
								
		<?php if ($this->_tpl_vars['sesion'] == 1): ?>
			<div class="barraSupUsuario">	
				<span class="barraSupSeparador">
					|
				</span>
						
				<span class="barraSupTexto">
					<?php echo $this->_tpl_vars['lang']['welcome_back']; ?>

					<a href="?act=reg">
						<?php echo $this->_tpl_vars['datosUser']['name']; ?>
&nbsp;<?php echo $this->_tpl_vars['datosUser']['last_name']; ?>

					</a>
				</span>
						
				<span class="barraSupSeparador">
					|
				</span>
      	       		
  				<a href="?act=reg">
  					Perfil
  				</a>
        				
    			<span class="barraSupSeparador">
					|
        		</span>

     			<a href="?act=ordenes">
     				Pedidos
     			</a>
        		
        		<span class="barraSupSeparador">
        			|
        		</span>
     		</div>
		<?php else: ?>	  	
			<div id="topnav" class="botonoesBarraSup">
				<ul>
					<li>
						<div class="loginReg">
							¿Tienes cuenta?
							La necesitas para pedir.
						</div>
					</li>
							
					<li>
						<div class="loginReg">
							<fb:login-button registration-url="http://www.delivery351.com/index.php?act=registroFacebook" on-login="recargar();"/>
						</div>
					</li>
							
					<li>
						<div class="loginReg">
							<a href="?act=reg&amp;reg=1">Registrate</a>
						</div>
					</li>
							
					<li>
						<div class="loginReg">
							<a href="login" class="signin">Entrar</a>
						</div>
					</li>
				</ul>
  			</div>

  			<fieldset id="signin_menu">
  				<form action="?act=reg" method="post" id="loginForm">
        			<input type="hidden" name="return" value="<?php echo $_GET['return']; ?>
" />
      					
      			<label for="username"><?php echo $this->_tpl_vars['lang']['email']; ?>
</label>
      			<input type="text" name="email" class="required email" value="<?php echo $_POST['email']; ?>
"/>
      	
      			<p>
        				<label for="password"><?php echo $this->_tpl_vars['lang']['password']; ?>
</label>
        				<input type="password" name="password" class="required" />
	      		</p>
	      				
	      		<div class="contenedorBotonesBarraSuperior">
        				<input type="submit"  id="signin_submit" name="action" value="<?php echo $this->_tpl_vars['lang']['login']; ?>
" />
        			</div>		
    			</form>
			</fieldset>	
		<?php endif; ?>			
	</div>
</div>



<div id="wrapper" class="rounded">
	<div id="top-wrapper"></div>
	<div class="contenidoblanco"></div>
	
		
		<div class="infoDeliverys">
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td width="180">
					<div class="tam-img">
						<a href="/<?php echo ((is_array($_tmp=$this->_tpl_vars['config']['sitename'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
">
							<img src="UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['config']['logo']; ?>
" class="logoSupIzqDelivery"/>
						</a> 
					</div>
				</td>
				
				<td width="200">
					<div class="cajaNombreDelivery">
						<div class="nombreDelivery">
   						<?php echo ((is_array($_tmp=$this->_tpl_vars['config']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')); ?>
    
						</div>
					
						<?php if ($this->_tpl_vars['status'] == 'open'): ?>
							<div class="estadoAbiertoSites">
								ABIERTO
							</div>
						<?php else: ?>
 							<div class="estadoCerradoSites">
 								CERRADO
 							</div>
						<?php endif; ?>
					
						<div class="direccionDelivery">
   						<?php echo $this->_tpl_vars['datos']['0']['address']; ?>

   					</div>
					</div>
				</td>
				
				<td>
					<div class="cajasInfoDelivery">
						<ul>
							<li>
								<div class="textoValoresInfoDelivery">
									Pedir Online
								</div>
							
								<div class ="valoresInfoDelivery">
									<a class=Ntooltip href="http://www.delivery351.com/sites.php?act=categoryTodos&cid=1">
										<?php if ($this->_tpl_vars['config']['multi'] == 1): ?> SI <?php else: ?> NO <?php endif; ?>
										<span>
                              	<?php echo ((is_array($_tmp=$this->_tpl_vars['config']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')); ?>
  acepta pedidos online, hacé tu pedido!
                             	</span>
                         	</a>
									
								</div>
							</li>
													
							<li>
								<div class="textoValoresInfoDelivery">
									delivery
								</div>
							
								<div class ="valoresInfoDelivery">
									<?php if ($this->_tpl_vars['status'] == 'open'): ?> SI <?php else: ?> NO<?php endif; ?>
								</div>
							</li>
						
							<li>
								<div class="textoValoresInfoDelivery">Teléfono</div>
							
								<div class ="valoresInfoDelivery">
									<?php echo $this->_tpl_vars['datos']['0']['phone']; ?>

								</div>
							</li>
							
							<li>
								<div class="textoValoresInfoDelivery">Demora</div>
								
								<div class ="valoresInfoDelivery">
									<?php echo $this->_tpl_vars['config']['deliverytime']; ?>
 min.
								</div>
							</li>
						</ul>
					</div>
				</td>
			</tr>
		</table>
   </div>
   
  			

				
	<div>
  		  		<div class="parteIzquierdaSites">
	  					
			<div class="menuIzquierdoSites">
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "includes/cat.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
			</div>
  		</div>
		  		
  		
  		
  				<div class="menuDerechoSites">
			
						<div id="cart">
				<?php echo $this->_tpl_vars['contenidoCarrito']; ?>

			</div>
						
			
			
						<div class="horariosInfoDeliverys">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td colspan="3">
							<div class="tituloHorariosInfoDeliverys">
								Horarios
							</div>
						</td>
					</tr>
						
					<tr>
						<td>
							<div class="diasHorariosInfoDeliverys">
								Dom
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['open_times'][0]; ?>
 - <?php echo $this->_tpl_vars['bck_start'][0]; ?>

							</div>
						</td>
						
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['bck_end'][0]; ?>
 - <?php echo $this->_tpl_vars['close_times'][0]; ?>
			
							</div>
						</td>
					</tr>
			
					<tr>
						<td>
							<div class="diasHorariosInfoDeliverys">
								Lun
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['open_times'][1]; ?>
 - <?php echo $this->_tpl_vars['bck_start'][1]; ?>

							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['bck_end'][1]; ?>
 - <?php echo $this->_tpl_vars['close_times'][1]; ?>
					
							</div>
						</td>
					</tr>
			
					<tr>
						<td>
							<div class="diasHorariosInfoDeliverys">
								Mar
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['open_times'][2]; ?>
 - <?php echo $this->_tpl_vars['bck_start'][2]; ?>
					
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['bck_end'][2]; ?>
 - <?php echo $this->_tpl_vars['close_times'][2]; ?>
					
							</div>
						</td>
					</tr>
									
					<tr>
						<td>
							<div class="diasHorariosInfoDeliverys">
								Mie
							</div>
						</td>
					
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['open_times'][3]; ?>
 - <?php echo $this->_tpl_vars['bck_start'][3]; ?>
										
							</div>
						</td>
						
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['bck_end'][3]; ?>
 - <?php echo $this->_tpl_vars['close_times'][3]; ?>
					
							</div>
						</td>
					</tr>
			
					<tr>
						<td>
							<div class="diasHorariosInfoDeliverys">
								Jue
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['open_times'][4]; ?>
 - <?php echo $this->_tpl_vars['bck_start'][4]; ?>
					
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['bck_end'][4]; ?>
 - <?php echo $this->_tpl_vars['close_times'][4]; ?>
					
							</div>
						</td>
					</tr>
			
					<tr>
						<td>
							<div class="diasHorariosInfoDeliverys">
								Vie
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['open_times'][5]; ?>
 - <?php echo $this->_tpl_vars['bck_start'][5]; ?>
					
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['bck_end'][5]; ?>
 - <?php echo $this->_tpl_vars['close_times'][5]; ?>
					
							</div>
						</td>
					</tr>
			
					<tr>
						<td>
							<div class="diasHorariosInfoDeliverys">
								Sab
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['open_times'][6]; ?>
 - <?php echo $this->_tpl_vars['bck_start'][6]; ?>
				
							</div>
						</td>
				
						<td>
							<div class="datosHorariosInfoDeliverys">
								<?php echo $this->_tpl_vars['bck_end'][6]; ?>
 - <?php echo $this->_tpl_vars['close_times'][6]; ?>
					
							</div>
						</td>
					</tr>
				</table>
			</div>
					</div>
			


			
  				<div class="contenidoPrincipalSites">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
     			<tr>
     				<td>       
     					<?php if ($_GET['act'] != ""): ?>
     						     						<div class="contenidoSolapas">
     							<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/".($this->_tpl_vars['act']).".tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
     						</div>
     					<?php else: ?>		                    
              										<?php echo '
								<script type="text/javascript" src="js/tabber.js"></script>
								<link rel="stylesheet" href="estilos/example.css" TYPE="text/css" MEDIA="screen">
				
								<script type="text/javascript">
									document.write(\'<style type="text/css">.tabber{display:none;}<\\/style>\');
								</script>
							'; ?>


							<div class="tabber">
								<div class="tabbertab">
									<h2>Principal</h2>
	  								
	  								<p>	
										<?php echo $this->_tpl_vars['config']['home']; ?>

									</p>
								</div>
  							</div>
  							   
							<div style="clear:both"></div>
        				<?php endif; ?>
					</td>
				</tr>
			</table>
			
			<div style="clear:both"></div>
		</div>
	</div>
		</div>

		
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "includes/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

</body>
</html>